{% extends 'ProyectoMainBundle:Layout:layout.html.twig' %}
{% block content %}
		<table border="1">
			<tr>
				<th>Plantilla</th>
				<th>Modificar</th>
                                <th>Eliminar</th>
			</tr>
			{% for plantilla in pagination %}
				<tr>
					<div>
						<td><label> {{ plantilla.plantilla.descripcion }}    </label></td>
                                        
                                                <td>
                                                <form action="{{ path('plantilla_modificar', { 'id': plantilla.plantilla.id }) }}" method="get">
                                                        <input type="hidden" value="{{ pagination.currentPageNumber }}" name="current_page" />
                                                        <button type="submit">Modificar</button>
                                                        
                                               </form>
                                                         <td>
                                               <form action="{{ path('plantilla_delete', { 'id': plantilla.plantilla.id }) }}" method="post">
                                                        <input type="hidden" name="_method" value="DELETE" />
                                                        <input type="hidden" value="{{ pagination.currentPageNumber }}" name="current_page" />
                                                        {{ form_widget(plantilla.delete_form) }}
                                                        <button type="submit">Eliminar</button>
                                                    </form>
                                                </td>
                                                </td>
					</div>
				</tr>
			{% endfor %}
		</table>
		<div class="navigation">
			
			{{ knp_pagination_render(pagination) }}
		
			
		</div>
	
{% endblock %}


